package com.stt.experiment.trynetty.buffer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 缓冲类
 */
@Getter
@Setter
@ToString
public abstract class AbstractBuffer implements Serializable{

    private static final long serialVersionUID = 1622468687252112089L;
    protected String module; // 模块
    protected String cmd; // 命令

    /**
     * 格式化json字符串
     * @return json串
     */
    public abstract String toJsonString();
}
